package com.elasticsearchtemplate.service;

import com.elasticsearchtemplate.dao.EmpElasticTemplateDao;
import com.elasticsearchtemplate.entity.Emp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpElasticTemplateServiceImpl {
    @Autowired
    private EmpElasticTemplateDao dao;

    public List<Emp> findAllByName(String name){
        return dao.findAllByName(name);
    }

}
